package com.hrt.web.smsRecord.service;

import java.sql.Timestamp;

import com.hrt.bean.SmsRecord;

public interface SmsRecordService {
	public void saveSmsRecord(SmsRecord smsRecord)throws Exception;
	/**
	 * 获取数据库当前时间
	 * @return
	 */
	
	public Timestamp getDate();
	
	/**
	 * 通过手机号码查找验证码
	 * @param mobile 手机号码
	 * @return
	 */
	public SmsRecord getCodeByMobile(String mobile);
	void updateSmsRecord(SmsRecord smsRecord) throws Exception;
}
